<template>
  <div class="home">
    <van-button type="danger">危险按钮</van-button>
    <img alt="Vue logo" src="../assets/logo.png">
  </div>
</template>

<script setup lang="ts">
// @ is an alias to /src
import { ref, defineComponent, getCurrentInstance } from 'vue'
import useCurrentInstance from "../useCurre/index";
const { proxy } = useCurrentInstance()
console.log(proxy.$systemName);

localStorage.setItem('token','Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJjZWExYWYyZTllZWI0MjExODRlOTY3MjM2NDg4NjhjNiIsInVzZXIiOiJvWnBUSzVOZjdLeDgyLTN4bGgzTW5RNURDanNrIiwic3ViIjoib1pwVEs1TmY3S3g4Mi0zeGxoM01uUTVEQ2pzayJ9.DEdHETc-rp2DJ8yjFbHRmAEicYMloYDjY8MJzW4gXCCFkQJqbrZZUHhMPSDggoTYAqYnmVqDYnd9pMqG-IVS2g')
let $api = proxy.$api.home
const checked = ref(true);

const res = ref(await $api.getTemplate({status:1}))
console.log(res._rawValue);
</script>
